<template>
<div class="header">
    <!--head-->
			<div class="head">
				<div class="headl l">
                     <img src="../assets/log.png" class="log"/>
				</div>
				<div class="headr r">
					<img src="../assets/san.png" id="sideMenu"/>				
				</div>
				<div class="clear"></div>
			</div>
<!--nav-->
			<div id="sideMenuContainer">
				<h2 id="sideMenu1"><img src="../assets/cha.png" /></h2>
				<ul>
						<li class="clear">
						<a href="/">
							<h1><span>01 /</span><span>首页</span></h1>
							<h3></h3></a>
					</li>
					<li class="clear">
						<a href="/footer/About">
							<h1><span>02 /</span><span>关于我们</span></h1>
							<h3></h3></a>
					</li>
					<li class="clear">
						<a href="/Product">
							<h1><span>03 /</span><span>产品展示</span></h1>
							<h3></h3></a>
					</li>
					<li class="clear">
						<a href="/Honour">
							<h1><span>04 /</span><span>荣誉资质</span></h1>
							<h3></h3></a>
					</li>
					<li class="clear">
						<a href="/Video">
							<h1><span>05 /</span><span>视频中心</span></h1>
							<h3></h3></a>
					</li>
					<li class="clear">
						<a href="contact.html">
							<h1><span>04 /</span><span>联系我们</span></h1>
							<h3></h3></a>
					</li>
				</ul>
			</div>
			<!--nav-->
			<!--banner-->
			<div class="banner">
				<img src="../assets/banner.png" />
			</div>
			<div class="clear"></div>
			<!--banner-->
</div>
</template>
<script>
import $ from 'jquery'
export default{
   name:'Header',
   data(){
    return{

    }
  }
  }
  $(function(){
   $('#sideMenu').sideToggle({
		moving: '#sideMenuContainer',
		direction: 'right'
	});
	$('#sideMenu1').sideToggle({
		moving: '#sideMenuContainer',
		direction: 'right'
	});
  })
		
</script>
<style>
/*nav*/
.head{width:100%;height:.94rem;position:absolute;max-width:750px;}
.headl{height:.94rem;background:#fff;}

.headl .log{width:6.30rem;height:.38rem;display:block;float:left;margin-top:.36rem;margin-left:.2rem;}
.headr{position:absolute;top:0;right:0;}
.headr img{display:block;width:1.44rem;height:1.51rem;position:relative;z-index:999;}
/*banner*/
.banner {position:relative;top:.79rem;z-index:444;height:2.79rem;margin-bottom:.74rem;}
.banner img{display:block;width:100%;height:2.79rem;}
/*nav*/
nav {
  background: #202020;
  box-shadow: 0px 1px 5px #5c4b51;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  font: 14px Rokkitt;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  text-transform: uppercase;
  width: 100%;
}
#userPLink {
  position: relative;
}
nav a, #sideMenu {

  text-shadow: 1px 1px 2px #212121;
} 
#userMenuToggle {
  position: absolute;
  right: 0;
}
ul#userMenu {
  background: #202020;
  list-style: none;
  position: absolute;
  top: 40px;
  left: 0;
  padding: 0;
}
#userMenu li {
  display: block;
  padding: 5px 10px;
  text-align: left;
  width: 150px;
}
ul#userMenu li a::after {
  content: attr(title);
}
#userMenu li a:hover, #sideMenuContainer > a:hover {
  padding-left: 3px
}

#scrollingNews {
  color: #fcfcfc;
}

#sideMenu {
  color: #f06060;
  float: right;
  z-index: 555;
}
#sideMenuContainer {
  background: rgba(0,0,0,.9);
  height: 100%;
  position: fixed;
  top:0;
  right: -100%;
  width: 100%;
  z-index: 100000;
  transition:all .5s;
}
#sideMenuContainer h2 img {
 width:.37rem;height:.37rem;
 margin-top:.52rem;
 float:right;margin-right:.74rem;margin-bottom:.86rem;
}
#sideMenuContainer ul li{height:.99rem;width:100%;border-top:1px solid #414141;
line-height:.99rem;}
#sideMenuContainer ul li a{display:block;padding:0 .73rem;}
#sideMenuContainer ul li h1{font-weight:normal;}
#sideMenuContainer ul li h1 span:first-child{font-size:.22rem;color:#fff;display:block;float:left;}
#sideMenuContainer ul li h1 span:last-child{font-size:.3rem;color:#fff;display:block;float:left;}
#sideMenuContainer ul li h3{width:.13rem;height:.23rem;background:url(../assets/jy.png) no-repeat;
background-size:100%;
float:right;margin-top:.36rem;}
#sideMenuContainer ul li:last-child{border-bottom:1px solid #414141;}
</style>